package analizator;

import analizator.Analizator.Atom;

/**
 *
 * @author bufu
 */
public class Identificator implements Atom {

    private int m_line, m_column;
    private String m_value;

    public Identificator(String value, int line, int column) {
        m_line = line;
        m_column = column;
        m_value = value;
    }

    public String getNume() {
        return m_value;
    }
    /*
     * public static Identificator makeAtom(FileProvider provider) { Caracter
     * head = provider.getCharacter(), temp; if (head == null) { return null; }
     * if (!head.isLetter()) { provider.putCharacter(head); return null; }
     * ArrayList<Caracter> list = new ArrayList<>(); list.add(head); do { temp =
     * provider.getCharacter(); list.add(temp); } while (temp.isLetter() ||
     * temp.isCifra()); list.remove(list.size() - 1);
     * provider.putCharacter(temp); return new Identificator(list, head.line,
     * head.column); }
     */

    @Override
    public String toString() {
        return "Identificator " + m_value + " " + m_line + " " + m_column;
    }
}
